package com.ewzj.bigdata.mvp.model.rspbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author:zhangjing
 * 作用:
 * return:
 */

public class SubBean implements Parcelable {


    /**
     * id : 13
     * member_id : 46
     * thumb : http://pic2.to8to.com/smallcase/1702/15/20170215_ee00ecb09bb92c5bf03dd3jaaf215qvj_s.jpg
     * cate_name : 新房
     * region : 天府新区
     * layout : 三室
     * price : 价格不限
     */

    private String id;
    private String member_id;
    private String thumb;
    private String cate_name;
    private String region;
    private String layout;
    private String price;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMember_id() {
        return member_id;
    }

    public void setMember_id(String member_id) {
        this.member_id = member_id;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getCate_name() {
        return cate_name;
    }

    public void setCate_name(String cate_name) {
        this.cate_name = cate_name;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getLayout() {
        return layout;
    }

    public void setLayout(String layout) {
        this.layout = layout;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.member_id);
        dest.writeString(this.thumb);
        dest.writeString(this.cate_name);
        dest.writeString(this.region);
        dest.writeString(this.layout);
        dest.writeString(this.price);
    }

    public SubBean() {
    }

    protected SubBean(Parcel in) {
        this.id = in.readString();
        this.member_id = in.readString();
        this.thumb = in.readString();
        this.cate_name = in.readString();
        this.region = in.readString();
        this.layout = in.readString();
        this.price = in.readString();
    }

    public static final Parcelable.Creator<SubBean> CREATOR = new Parcelable.Creator<SubBean>() {
        @Override
        public SubBean createFromParcel(Parcel source) {
            return new SubBean(source);
        }

        @Override
        public SubBean[] newArray(int size) {
            return new SubBean[size];
        }
    };
}
